package com.zlq.cn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhoucl
 * @since 2021-09-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("riddle_type")
public class RiddleType extends Model<RiddleType> {

    private static final long serialVersionUID = 1L;

    /**
     * 谜语类型id
     */
    @TableId(value = "riddle_type_id", type = IdType.AUTO)
    private Integer riddleTypeId;

    /**
     * 谜语类型编号
     */
    private String typeCode;

    /**
     * 谜语类型名称
     */
    private String typeName;

    /**
     * 谜语类型图标
     */
    private String typePath;


    @Override
    protected Serializable pkVal() {
        return this.riddleTypeId;
    }

}
